package Accounts;
import java.util.Vector;


public class Bank 
{
	private String fName;
	private Vector<CheckingAccount> fCheckingAccounts;
	private Vector<SavingsAccount> fSavingAccounts;
	
	public Bank(String name)
	{
		fName = name;
		fCheckingAccounts = new Vector<CheckingAccount>();
		fSavingAccounts = new Vector<SavingsAccount>();
	}
	
	public CheckingAccount openSimpleCheckingAccount(String name, String Address, String zip, String city, String country)
	{
		CheckingAccount newAccount = new CheckingAccount(name, Address, zip, city, country);
		fCheckingAccounts.add(newAccount);
		return newAccount;
	}
	
	public CheckingAccount openFullPackage(String name, String Address, String zip, String city, String country)
	{
		CheckingAccount newAccount = new CheckingAccount(name, Address, zip, city, country);
		fCheckingAccounts.add(newAccount);
		newAccount.applyForCreditCard(name, Address, zip, city, country, newAccount.getAccountNumber());
		SavingsAccount newSavingsAccount = new SavingsAccount(name, Address, zip, city, country);
		fSavingAccounts.add(newSavingsAccount);
		return newAccount;
	}
	
		
}
